package com.ffapp.demo.bean;


import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;

public class HomeOndutyPersonListBean extends BaseListBeanXF {

    private ArrayList<HomeOndutyPersonListData> list = new ArrayList<HomeOndutyPersonListData>();

    private String name;
    public ArrayList<HomeOndutyPersonListData> getList() {
        return list;
    }

    public void setList(ArrayList<HomeOndutyPersonListData> list) {
        this.list = list;
    }

    @JSONField(serialize = false)
    public void addListBean(HomeOndutyPersonListBean listbean) {
        if (listbean == null)
            return;
        if (this.getCurrent_page() == INIT_PAGE) {
            setList(listbean.getList());
        } else {
            if (list == null)
                list = new ArrayList<HomeOndutyPersonListData>();
            list.addAll(listbean.getList());
        }
        setListBeanData(listbean);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
